export default {
  path: "/sys",
  redirect: "/sys/user",
  meta: {
    icon: "ri:store-2-line",
    // showLink: false,
    title: "后台管理",
    rank: 20
  },
  children: [
    {
      path: "/sys/dept",
      name: "dept",
      meta: {
        icon: "ep:avatar",
        title: "部门管理"
      },
      children: [
      {
        path: "/sys/user",
        name: "user",
        component: () => import("@/views/sys/user/index.vue"),
        meta: {
          title: "用户管理"
        }
      },
      {
        path: "/sys/dept",
        name: "dept",
        component: () => import("@/views/sys/dept/index.vue"),
        meta: {
          title: "部门管理"
        }
      },
      {
        path: "/sys/employee",
        name: "employee",
        component: () => import("@/views/sys/employee/index.vue"),
        meta: {
          title: "员工管理"
        }
      }
      ]
    },
    {
      path: "/warehouse",
      redirect: "/warehouse/index",
      meta: {
        icon: "ri:archive-2-fill",
        // showLink: false,
        title: "仓储管理",
      },
      children: [
        {
          path: "/warehouse/index",
          name: "warehouse",
           component: () => import("@/views/warehouse/index.vue"),
          meta: {
            title: "仓库管理"
          }
        },
      ]
    },
    {
      path: "/sys",
      redirect: "/sys/basic",
      meta: {
        icon: "ic:baseline-email",
        // showLink: false,
        title: "基础配置",
      },
      children: [
        {
          path: "/sys/basic",
          name: "basic",
          component: () => import("@/views/sys/basic/index.vue"),
          meta: {
            title: "信息发布"
          }
        },
        {
          path: "/sys/dict",
          name: "dict",
          component: () => import("@/views/sys/dict/index.vue"),
          meta: {
            title: "字典"
          }
        },
        {
            path: "/sys/process",
            name: "process",
            component: () => import("@/views/sys/process/index.vue"),
            meta: {
              title: "生产工序"
            }
          },
      ]
    },
  ]
} satisfies RouteConfigsTable;
